<include file="../header" />
<body class="J_scroll_fixed">
<script>


</script>
<form class="well form-search" method="post" style="float:left" action="{:U('quickOrder/index')}">
    <div class="search_type cc mb10">
        <div class="mb10">
        <span class="mr20">
            状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：{:getEnumSelectWidget($statusEnum, "fo#status", $status, 1)}
            &nbsp;订单编号：<input type="text" name="fo#finished_order_no-like" value="{$quick_order_no}" />
            快速代码：<input type="text" name="qo#quick_agent_code-like" value="{$quick_agent_code}" />
            产品名称：<input type="text" name="fp#name-like" value="{$name}" />
            <br>下单开始时间：<input type="text" value="{$begin_time}" class="date J_date" name="qo#create_time-egt" />
            下单截止时间：<input type="text" value="{$end_time}" class="date J_date" name="qo#create_time-elt" />
            <button class="btn btn-primary" type="submit">搜索</button>
            <a class="btn" href="{:U('quickOrder/index')}">重置</a>
        </span>
        </div>
    </div>
</form>
<div class="wrap J_check_wrap">
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>订单信息</th>
            <th>产品信息</th>
            <th>用户信息</th>
            <th>需要发票</th>
            <th>收件信息</th>
            <th>备注</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="orderList" item="vo">
            <tr>
                <td>({$vo.quick_order_id}){$vo.admin_name}<br>{$vo.quick_order_no}<br>{$vo.create_time}</td>
                <td>{$vo.name}<br>数量：{$vo.number} 件， 规格：{$vo.size}<br>单价：{$vo.sale_price}， 总计：{$vo.total_price}元</td>
                <td>
                    {$vo.customer_id}_{$vo.nickname}_{$vo.realname}
                    <br>快速代码：{$vo.quick_agent_code}
                <td>
                    {:getEnumString($defaultEnum, $vo['need_invoice'])}
                    <if condition="$vo['need_invoice'] eq $defaultEnum['YES']">
                        : {$vo.invoice_name}<br>税号 : {$vo.invoice_number}
                    </if>
                    <if condition="$vo['need_invoice'] neq $defaultEnum['NO']">
                        <br>明细 : {$vo.invoice_detail}
                    </if>
                </td>
                <td>
                    【{$vo.delivery_type}】 {$vo.receive_name}，{$vo.receive_contact}
                    <if condition="$vo['delivery_type'] eq '快递'">
                        <br>地址：{$vo.receive_address}
                    </if>
                </td>
                <td>{$vo.note}</td>
                <td>
                    {:getEnumString($statusEnum, $vo['status'])}
                    <if condition="$vo['status'] eq $statusEnum['END_DELIVERY']">
                        ：{$vo.delivery_name}
                        <br>{$vo.express_company} : {$vo.delivery_number}
                        <br>{$vo.outstock_time}
                    </if>
                </td>
                <td>
                    <if condition="$vo['status'] eq $statusEnum['WAITING_PROCESS']">
                        <a class="btn btn-success" href='{:U("quickOrder/endDelivery",array("id"=>$vo["quick_order_id"]))}'>确认出库</a>
                    </if>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>